import Vue from 'vue'
import VueRouter from 'vue-router'

// 1.导入页面
import Reg from '@/views/reg'
import Login from '@/views/login'

Vue.use(VueRouter)

// 2.配置路由跳转规则

const routes = [
  {
    path: '/reg',
    component: Reg
  },
  {
    path: '/login',
    component: Login
  }
]

const router = new VueRouter({
  routes
})

export default router
